import axios from '../axios'

/* 
 * 节点管理
 */

// 节点展示列表
export const nodeList = (page, size) => {
    return axios({
        url: '/kysj/spiderManager/spiderManagerLimitQuery?page='+page+'&size='+size,
        method: 'get',
    })
}

// 添加节点
export const spiderManagerAdd = (data) => {
    return axios({
        url: '/kysj/spiderManager/spiderManagerAdd',
        method: 'post',
        data
    })
}
 
// 删除节点
export const spiderManagerDeleteById = (byId) => {
    return axios({
        url: '/kysj/spiderManager/spiderManagerDeleteById/'+ byId,
        method: 'delete',
    })
}

// 修改节点 
export const spiderManagerModify = (data) => {
    return axios({
        url: '/kysj/spiderManager/spiderManagerModify',
        method: 'post',
        data
    })
}
